package com.sc.nft.entity.vo;

import com.sc.nft.enums.PrizeDrawActivityTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class RewardAllocationVO {

    @ApiModelProperty("配置签到天数")
    private Integer signInDay;

    @ApiModelProperty("当前已经签到天数")
    private Integer nowSignInDay;

    @ApiModelProperty("可补签天数")
    private Integer supplementaryDay;

    @ApiModelProperty("奖励领取状态")
    private Boolean status;

    @ApiModelProperty("签到活动类型")
    private PrizeDrawActivityTypeEnum type;

    @ApiModelProperty("奖励名称")
    private String propName;

    @ApiModelProperty("奖励名称不包括数量")
    private String rewardName;

    @ApiModelProperty("签到活动配置信息")
    private String activitySignInMessage;
    public void setType(Integer type){
        this.type = PrizeDrawActivityTypeEnum.getByCode(type);
    }

}
